<template>
	<view class="container">
		<!-- 搜索栏区域 -->
		<view class="search-bar">
			<image class="map-icon"
				src="https://cdn8.axureshop.com/demo/1689476/images/%E7%BB%84%E4%BB%B6_%E8%A7%84%E8%8C%83/u1309.png">
			</image>
			<view class="search-wrap">
				<image class="search-icon" src="/static/search.png"></image>
				<input class="search-input" placeholder="搜索机构/医生" placeholder-style="color: #999" disabled />
			</view>
		</view>

		<view class="institution-list">
			<view class="institution-card">
				<view class="card-left">
					<image class="hospital-icon"
						src="https://cdn7.axureshop.com/demo/1881228/images/%E6%9C%BA%E6%9E%84%E7%AE%A1%E7%90%86/u5251.png">
					</image>
				</view>
				<view class="card-middle">
					<text class="institution-name">北京市怀柔区洛西社区卫生服务站</text>
					<text class="distance">距您3.6km</text>
				</view>
				<view class="card-right">
					<image class="arrow-icon" src="/static/arrow-right.png"></image>
				</view>
			</view>


		</view>
	</view>
</template>

<script setup>
</script>

<style scoped lang="scss">
	.container {
		min-height: 100vh;
		background-color: #f5f5f5;
	}

	/* 搜索栏样式 */
	.search-bar {
		display: flex;
		align-items: center;
		padding: 10px 15px;
		background-color: #fff;
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);

		.map-icon {
			width: 24px;
			height: 24px;
			margin-right: 10px;
		}

		.search-wrap {
			display: flex;
			align-items: center;
			flex: 1;
			background-color: #f5f5f5;
			border-radius: 20px;
			padding: 6px 12px;

			.search-icon {
				width: 18px;
				height: 18px;
				margin-right: 8px;
			}

			.search-input {
				flex: 1;
				font-size: 14px;
				height: 24px;
				padding: 0;
			}
		}
	}

	/* 机构列表容器 */
	.institution-list {
		padding: 15px 10px;
	}

	.institution-card {
		display: flex;
		align-items: center;
		justify-content: space-between;
		background-color: #fff;
		border-radius: 8px;
		padding: 15px;
		margin-bottom: 10px;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	}

	.card-left .hospital-icon {
		width: 48px;
		height: 48px;
		margin-right: 12px;
		border-radius: 4px;
	}

	.card-middle {
		flex: 1;
		min-width: 0;

		.institution-name {
			font-size: 16px;
			font-weight: 500;
			color: #333;
			line-height: 1.4;
			margin-bottom: 4px;
			display: block;
			white-space: rap;

		}

		.distance {
			font-size: 14px;
			color: #999;
		}
	}

	/* 卡片右侧箭头 */
	.card-right .arrow-icon {
		width: 20px;
		height: 20px;
		color: #999;
		margin-left: 10px;
	}
</style>